package com.zone.infrastructure.persistent.dao;

import com.zone.infrastructure.persistent.po.StrategyRule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: zongzi
 * @description: TODO
 * @date: 2024/5/20
 */
@Mapper
public interface IStrategyRuleDao {

    /**
     * 查询策略规则
     *
     * @return
     */
    List<StrategyRule> queryStrategyRuleList();

    /**
     * 查询规则策略集合
     *
     * @param strategyId 策略id
     * @param ruleModel  规则模型
     * @return 规则策略集合
     */
    List<StrategyRule> listStrategyRule(@Param("strategyId") Long strategyId, @Param("ruleModel") String ruleModel);

    StrategyRule queryRule(@Param("strategyId") Long strategyId, @Param("awardId") Integer awardId);

    StrategyRule queryStrategyRule(@Param("strategyId") Long strategyId, @Param("ruleType") String ruleType, @Param("ruleModel") String ruleModel);
}
